import apibase from "@/api/apiBase";
import axios from "axios";

//保单列表
export const $orderInsurancelist = (params:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url:'/female/orderInsurance/list',
    data:params,
    instance,
  });
}
//保单详情
export const $orderInsuranceDetail = (params:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url:'/female/orderInsurance/detail',
    data:params,
    instance,
  });
}

export const $orderInsuranceRefund = (params:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url:'/female/orderInsurance/refund',
    data:params,
    instance,
  });
}

//承保

export const $orderInsuranceDoInsure = (params:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url:'/female/orderInsurance/doInsure',
    data:params,
    instance,
  });
}






